package com.atguigu.realtime.gmallpublisher.service;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.Map;

public interface PublisherService {
    // 计算指定日志的实时的日活总数
    Long getDau(String date) throws IOException;

    /*
    计算每小时的日活
    Map("10"->199, "11"->200, ...)
     */
    Map<String, Long> getHourDau(String date) throws IOException;


    BigDecimal getOrderAmount(String date);

    Map<String, BigDecimal> getHourOrderAmount(String date);
}
/*

┌─create_hour─┬──────total─┐
│ 06          │ 1199754.00 │
└─────────────┴────────────┘
│ 07          │ 99754.00   │
└─────────────┴────────────┘

=>

06:1199754.00, 07:99754.00


 */